<template>
	<view class="item">
		<view class="item_img">
			<u-image width="100%" height="100%" fade mode="aspectFill" :src="img"></u-image>
		</view>
		<view class="item_title">
			{{ title }}
		</view>
		<view class="item_memo">
			<view class="item_memo_price">¥ {{ price }}</view>
			<view class="item_memo_num">{{ num }}人已付款</view>
		</view>
	</view>
</template>

<script>
	export default {
		name: "shopInfo",
		props: {
			img: {
				type: String,
				default: 'http://caf-evos-sys.oss-cn-hangzhou.aliyuncs.com/cmxcmp/1676959902521.png'
			},
			mainKey: {
				type: String,
				default: ''
			},
			title: {
				type: String,
				default: '春装2022年新款法式港味复古chic惊艳红色.....吊......'
			},
			price: {
				type: String,
				default: '120.99'
			},
			num: {
				type: String | Number,
				default: 10
			}
		},
		data() {
			return {

			};
		}
	}
</script>

<style lang="scss">
	.item {
		width: 100%;
		border-radius: 10rpx 10rpx 10rpx 10rpx;
		background: #FFFFFF;
		box-shadow: 0rpx 3rpx 3rpx 1rpx rgba(0, 0, 0, 0.1);
		overflow: hidden;
		.item_img {
			width: 100%;
			height: 340rpx;
			
		}

		.item_title {
			box-sizing: border-box;
			font-family: Source Han Sans CN, Source Han Sans CN;
			font-weight: 400;
			font-size: 28rpx;
			color: #333333;
			display: -webkit-box;
			-webkit-line-clamp: 2;
			-webkit-box-orient: vertical;
			overflow: hidden;
			margin: 20rpx 20rpx 24rpx;
		}
		.item_memo {
			width: 100%;
			display: flex;
			align-items: baseline;
			padding: 0 20rpx 20rpx;
			.item_memo_price {
				font-family: Source Han Sans CN, Source Han Sans CN;
				font-weight: 500;
				font-size: 24rpx;
				color: #F56629;
				margin-right: 20rpx;
			}
			.item_memo_num {
				font-family: Source Han Sans CN, Source Han Sans CN;
				font-weight: 400;
				font-size: 24rpx;
				color: #999999;
			}
		}
	}
</style>